SOURCES= cr.c cw.c parStr.c
CC=gcc
CFLAGS= -g -Wall -ansi -pedantic
OBJECTS=$(SOURCES:.c=.o)
TARGET= libcrw.a
LIBS = -lefence

all: $(TARGET)

clean:
	rm -f $(TARGET) $(OBJECTS) .depend 

distclean:
	rm -f $(TARGET) $(OBJECTS) .depend *~ 

-include .depend

.depend: $(SOURCES) *.h
	gcc -MM $(SOURCES) >.depend

$(TARGET): $(OBJECTS)
	rm -f $@ ;\
	ar r $@ $^ ;\
	ranlib $@
